from flask import Flask, make_response, jsonify
web = Flask(__name__)


@web.route('/')
def index():
    data = jsonify({
        'name': 'hahah'
    })
    resp = make_response(data, 200, [('mykey', 'myvalue')])
    resp.set_cookie('ID', '123')
    return resp


if __name__ == '__main__':
    web.run()
